<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>绑定内联样式：对象语法</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <div v-bind:style="styleObject">绑定内联样式：对象语法</div>
    </div>
</body>
<script>
    var vn = new Vue({
        el: '#app',
        data: {
            styleObject: {
                color: 'red',
                fontSize: '13px'
            }
        }
    })
</script>
</html>